package com.lighu.computing;

import android.content.Context;

import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;

import com.lighu.computing.utils.SqlPlantUtils;

import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * @Author : LingHu
 * @Email : 1714873054@qq.com
 * @Date : on 2023/10/4 17:20.21
 * @Description :描述
 */
@RunWith(AndroidJUnit4.class)
public class PlantTest {
    private  Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
    private SqlPlantUtils db=new SqlPlantUtils(appContext);
    @Test
    public void testInsert(){
        db.insert(1,"linghu",24,10000);
        db.closeSql();
    }
    @Test
    public void testDelete(){
        db.delete(1);
        db.closeSql();
    }
    @Test
    public void testQuery(){
        db.query();
        db.closeSql();
    }
    @Test
    public void testUpdate(){
        db.update(120,24);
        db.closeSql();
    }
}
